cls
@echo off
@echo *
@echo * Microsoft Azure Mobile Service (ToDo) Exerciser

call env.bat

@echo * Setting Mobile Service Table.

set MSTable=toDoItem
set RecordGUID=%1

@echo ON

@echo * 
@echo * Table = %MSTable%
@echo * Record GUID (for Delete and Update) = %RecordGUID%
@echo * Record GUID = Paramater1 of this batch file
@echo *




@echo * [3.2] PATCH Only need fields to be updated to have specified values (other fields remain unchanged).
@echo * > PATCH /tables/%MSTable%/%GUD%
@echo *
curl -v  -X PATCH -H Content-Type:application/json -H X-ZUMO-APPLICATION:%AppKey%  -d "{\"completed\": true}" %AzureMobileServiceURL%/tables/%MSTable%/%RecordGUID%
